package com.fintech.third.utils.wechat;


public enum PaymentApi {
	WechatBeginOrderApi("https://api.mch.weixin.qq.com/pay/unifiedorder"),
	WechatGetOrderInfo("https://api.mch.weixin.qq.com/pay/orderquery"),
	AliPayGateWayUrl("https://openapi.alipay.com/gateway.do");
	private String type;

	private PaymentApi(String type) {
		this.type = type;
	}

	public static PaymentApi getType(String state) {
		for (PaymentApi deviceType : PaymentApi.values()) {
			if (deviceType.type.equalsIgnoreCase(state)) {
				return deviceType;
			}
		}
		throw new RuntimeException(state + " is not a valid Host Type!");
	}

	public String getStrType() {
		return type;
	}
}
